#19 new
Andrei Erdoss

Rspec Stories Failing

Reported by Andrei Erdoss | September 26th, 2008 @ 09:48 AM

Hello,

I have just installed the restful authentication plugin with rspec and activation. The specs work. I ran the stories and I managed to get pasted the first few failures by using this posting: http://www.ruby-forum.com/topic/...

I was not able to fix the last one on the list because it seems that the stories have changed since that post. Here is the error I'm getting:


FAILURES:
    1) Logging in (Anonymous user can log in and be remembered) FAILED
    Spec::Expectations::ExpectationNotMetError: expected "4", got "14" (using .eql?)
    /Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:98:in `$actor session store should have $attributes'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `each'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `$actor session store should have $attributes'
stories/all.rb:2

    2) Logging in (Log-in with bogus info should fail until it doesn't) FAILED
    Spec::Expectations::ExpectationNotMetError: expected "4", got "16" (using .eql?)
    /Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:98:in `$actor session store should have $attributes'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `each'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `$actor session store should have $attributes'
stories/all.rb:2

I also noticed that the got "number" (in this case 14 and 16) changes everytime the code is run with an increment of 14. Please let me know how can this be fixed. Thank you

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.

http://github.com/technoweenie/restful-authentication/tree

People watching this ticket

Pages